package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.zzw.TDatasourceManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TDatasourceManageMapper;
import com.ruoyi.system.service.ITDatasourceManageService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author xbx
 * @date 2023-10-20
 */
@Service
public class TDatasourceManageServiceImpl implements ITDatasourceManageService 
{
    @Autowired
    private TDatasourceManageMapper tDatasourceManageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param cResourceId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TDatasourceManage selectTDatasourceManageByCResourceId(Long cResourceId)
    {
        return tDatasourceManageMapper.selectTDatasourceManageByCResourceId(cResourceId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tDatasourceManage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TDatasourceManage> selectTDatasourceManageList(TDatasourceManage tDatasourceManage)
    {
        return tDatasourceManageMapper.selectTDatasourceManageList(tDatasourceManage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tDatasourceManage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTDatasourceManage(TDatasourceManage tDatasourceManage)
    {
        return tDatasourceManageMapper.insertTDatasourceManage(tDatasourceManage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tDatasourceManage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTDatasourceManage(TDatasourceManage tDatasourceManage)
    {
        return tDatasourceManageMapper.updateTDatasourceManage(tDatasourceManage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param cResourceIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTDatasourceManageByCResourceIds(Long[] cResourceIds)
    {
        return tDatasourceManageMapper.deleteTDatasourceManageByCResourceIds(cResourceIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param cResourceId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTDatasourceManageByCResourceId(Long cResourceId)
    {
        return tDatasourceManageMapper.deleteTDatasourceManageByCResourceId(cResourceId);
    }

    @Override
    public List<TDatasourceManage> selectTDatasourceManageByCIndicatorId(Long cIndicatorId) {

        return tDatasourceManageMapper.selectTDatasourceManageByCIndicatorId(cIndicatorId);
    }
}
